<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <form action="{% url 'image' %}" method="post" enctype="multipart/form-data">
        {% csrf_token %}
        <input type="text" name="user">
        <input type="file" name="b">
        <input type="submit" value="上传">

    </form>
</div>
<div>
    {% for x in inof %}
        <img src="{{ x.image }}" alt="">
    {% endfor %}

</div>
</body>
</html>